/*
 * QE3e Qt Quick 3D Engine.
 * Copyright (C) 2010 Joris Vaillant and Mathieu Pujol
 * <joris.vaillant@gmail.com>  <mathieu.pujol87@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef OPENGLINFOS_H
#define OPENGLINFOS_H

//QE3E
#include <qe3e_global.h>
#include <qe3e_opengl.h>

//Qt
#include <QStringList>

namespace qe3e
{

  class QE3E_EXPORT OpenGLInfos
  {
  public:
    OpenGLInfos();
    const QStringList & getOpenglExtensions() const;
    const QString & getOpenglHardwareVendor() const;
    const QString & getOpenglHardware() const;
    const QString & getOpenglVersion() const;
    const QString & getOpenglShadingLanguageVersion() const;
    const QString & getOpenglInfos() const;

    bool isSupportedOpengl(const QString & versionString) const;
    bool isSupportedOpenglExtension(const QString & extension) const;
    bool isSupportedOpenglExtension(const QStringList & extensions ) const;
    int getMaxTextureUnit(bool onFixePipe) const;

  private:
    QStringList mExtensions;
    QString mVendorName;
    QString mHardware;
    QString mVersion;
    QString mGlslVersion;
    QString mFullInfos;
  };

}


#endif // OPENGLINFOS_H

